package com.then.component.login.ui.login;

import com.then.architecture.VOCreator;
import com.then.component.login.BR;
import com.then.component.login.R;
import com.then.component.login.databinding.ActivityLoginBinding;
import com.then.component.login.ui.base.LoginModuleDelegate;

/**
 * Created by 42524 on 2018/1/22.
 */

public class LoginDelegate extends LoginModuleDelegate<LoginVo, ActivityLoginBinding> {


    @Override
    public int getRootLayoutId() {
        return R.layout.activity_login;
    }


    protected String getPhoneNum() {
        return vo.phoneNum.get();
    }

    protected String getPwd() {
        return vo.pwd.get();
    }


    protected void setPhoneNum(String phoneNum) {
        vo.phoneNum.set(phoneNum);
    }

    protected void setPwd(String pwd) {
        vo.pwd.set(pwd);
    }

    @Override
    protected VOCreator createVo() {
        return new VOCreator(LoginVo.class, BR.vo);
    }
}
